Hans Hagen via ntg-context schrieb am 10.08.2023 um 16:41:
On 8/10/2023 3:52 PM, Wolfgang Schuster wrote:
Henning Hraban Ramm schrieb am 10.08.2023 um 15:33:
I was already on the latest, and the problem persists. Here’s a MWE:
"""
\setupreferencing[left=,right=,]
\starttext
\
On 8/10/2023 3:52 PM, Wolfgang Schuster wrote:
Henning Hraban Ramm schrieb am 10.08.2023 um 15:33:
I was already on the latest, and the problem persists. Here’s a MWE:
"""
\setupreferencing[left=,right=,]
\starttext
\about[something]
\stoptext
"""
It's unre
Henning Hraban Ramm schrieb am 10.08.2023 um 15:33:
I was already on the latest, and the problem persists. Here’s a MWE:
"""
\setupreferencing[left=,right=,]
\starttext
\about[something]
\stoptext
"""
It's unrelated to \about. Using nothing as argument to t
:
"""
\setupreferencing[left=,right=,]
\starttext
\about[something]
\stoptext
"""
tex error > tex error on line 5 in file referencetest.tex: Extra
}, or forgotten \endgroup
\egroup
\about
...ways \let \\\space \postponenotes \referencingparameter \c!left
\d
Alan Bowen schrieb am 29.05.2020 um 16:53:
Thank you, Wolfgang. That works nicely.
One small detail left: the reference is not interactive.
I have tried \setupreferencing [state=start, interaction=all] but that
does not seem to be the way.
minimal file:
\setupinteraction[state=start
ich is "31" or so. I want to access the value in Lua to do some
calculations on it before returning the result to TeX.
Best regards,
Oliver
Am 05.09.19 um 14:41 schrieb Hans Hagen:
On 9/4/2019 7:37 PM, Oliver von Criegern wrote:
So how can I pass the value of my reference to Lua?
\se
are obviously not being
expanded before they are passed to Lua.
Here is a minimal example:
|\setupreferencing[state=start]||\definenumber[test]\setnumber[test][5]\startluacodefunction
TestVar(var)print('VARIABLE: ')print(var)tex.print(var)end
\stopluacode\def\TestLua#1{\ctxlua{TestVar([==[#1]==])}}% Cf
to Lua.
Here is a minimal example:
|\setupreferencing[state=start]||\definenumber[test]\setnumber[test][5]\startluacodefunction
TestVar(var)print('VARIABLE: ')print(var)tex.print(var)end
\stopluacode\def\TestLua#1{\ctxlua{TestVar([==[#1]==])}}% Cf.
https://www.contextgarden.net
le=\em]
\hyphenatedurl{www.fiee.net}
\goto{www.fiee.net}
\stoptext
\goto -> \setupinteraction[style=...,color=...,contrastcolor=...]
\about -> \setupreferencing[left=...,right=...,width=...] +
\setupinteraction[style=...,color=...,contrastcolor=...]
\hyphenatedurl -> N/A
\url -&g
(instead of ". . .").
Is it possible?
No, you can only change the width of the text (set a big value and it
won’t be shortened).
\setupreferencing[width=\makeupwidth] % default: .75\makeupwidth
Wolfgang
___
true, when the reference
format is not defined via \definereferenceformat, but also in
\in{Figure}[fig:A].
Here is the minimal example:
\starttext
\setupreferencing[
left={},
right={},
interaction=text, % critical
]
\definereferenceformat[infig][text={Figure }]
\chapter[myreference]{A Good Story
.)
Here's a working example
% engine=luajittex
\startenvironment env_trap
\enableregime[utf-8]
\setupcolors[state=start]
\setupreferencing[autofile=yes]
\setupinteraction[state=start, color=blue, contrastcolor=blue, style={\tf}]
\usemodule[simplefonts]
\usemodule[database]
% Enable hyperlinks
d here. Although I tried
along the lines in the first example, as mentioned at the end of the
text, I could not manage to get these triangles.
You can change the output from the \in and \at commands with
\setupreferencing.
%\setupreferencing[interaction=all]
\setupreferencing[interaction=
:
\setupinteraction[state=start]
\setupreferencing[left=, right=, interaction=all]
\setupdirections[bidi=on,method=two]
\starttext
\section[sectionone]{Section one}
No text after the first line:\\\about[sectionone]
Misplaced text
\stoptext
Text after \about
is is a related issue to this bug:
\setupinteraction[state=start]
\setupreferencing[left=, right=, interaction=all]
\setupdirections[bidi=on,method=two]
\starttext
\section[sectionone]{Section one}
No text after the first line:\\\about[sectionone]
Misplaced text
\sto
is shown in the text which happens at the moment only for
the \about command.
\setupreferencing[left=,right=]
\starttext
\startsection[reference={sec:one},
title={Three\\line\\title}]
\startparagraph
See \about[sec:one].
\stopparagraph
\stopsection
\stoptext
Wolfgang
documented feature ... in beta:
% tests/mkiv/pagestate-001.tex
\useMPlibrary[dum]
\setuppagenumbering
[alternative=doublesided]
% new: \setupreferencing[doublesided=no]
% old: \somewhere{backward}{foreward}[label]
% new: \someplace{preceding}{backward}{current}{foreward}{following
\analyzecurrentreference
from your example allows mkiv to typeset correctly and obtain the expected
result.
yet another sparsely documented feature ... in beta:
% tests/mkiv/pagestate-001.tex
\useMPlibrary[dum]
\setuppagenumbering
[alternative=doublesided]
% new: \setupreferencing
/pagestate-001.tex
\useMPlibrary[dum]
\setuppagenumbering
[alternative=doublesided]
% new: \setupreferencing[doublesided=no]
% old: \somewhere{backward}{foreward}[label]
% new: \someplace{preceding}{backward}{current}{foreward}{following}[label]
% old: \atpage[#label]
% new
documented feature ... in beta:
% tests/mkiv/pagestate-001.tex
\useMPlibrary[dum]
\setuppagenumbering
[alternative=doublesided]
% new: \setupreferencing[doublesided=no]
% old: \somewhere{backward}{foreward}[label]
% new: \someplace{preceding}{backward}{current}{foreward}{following
feature ... in beta:
% tests/mkiv/pagestate-001.tex
\useMPlibrary[dum]
\setuppagenumbering
[alternative=doublesided]
% new: \setupreferencing[doublesided=no]
% old: \somewhere{backward}{foreward}[label]
% new:
\someplace{preceding}{backward}{current}{foreward}{following}[label]
% old
.
yet another sparsely documented feature ... in beta:
% tests/mkiv/pagestate-001.tex
\useMPlibrary[dum]
\setuppagenumbering
[alternative=doublesided]
% new: \setupreferencing[doublesided=no]
% old: \somewhere{backward}{foreward}[label]
% new:
\someplace{preceding}{backward}{current
been unsuccessful in creating such a \animalabout
command. I looked at \definereferenceformat which gets rid of the quotes,
but I can’t make it go italics. I also looked at \setupreferencing, but that
seems to affect ALL \abouts.
\definereferenceformat[animalabout][style=italic,color=blue,type
such as \animalabout[ducks] and \animalabout[bears].
...but so far I have been unsuccessful in creating such a \animalabout command.
I looked at \definereferenceformat which gets rid of the quotes, but I can’t
make it go italics. I also looked at \setupreferencing, but that seems to
affect ALL \abouts
make it go italics. I also looked at \setupreferencing, but that
seems to affect ALL \abouts.
\definereferenceformat[animalabout][style=italic,color=blue,type=title,left=«,right=»]
\starttext
There are lots of animals such as \about[ducks] and \about[bears].
There are lots of animals
the
cropping? Additionally, if somebody can think of a better solution than
my \textreference approach, please let me know.
Thank you,
Joshua Krämer
Minimal Working Example:
\def\Agendaentry#1#2{\sym{#1}\textreference[Agendaentry#1]{#2}#2}
\setupreferencing[left={},right={}]
\newcount\Agendaentrynr
}, %or {page
précédente}
nextpage={à la page suivante}] %or {page suivante}
In case Hans is willing to add such capabilities to the cross referencing, it
would be great if one could setup the cross references in the same way by
saying for instance
\setupreferencing
%% end
an environment file e.tex
%% e.tex
\startenvironment e
% style commands...
\stopenvironment
%% end
and two component files c.tex and d.tex
%% c.tex (d.tex is the same file, except content part)
\setupreferencing[autofile=yes]
\setupinteraction[state=start]
\startcomponent c
\product p
On 11/19/2012 10:33 AM, Hans Hagen wrote:
this is already in place for a while given that one uses the right
structures:
http://www.pragma-ade.com/general/magazines/mag-1103.pdf
Oops, sorry, I must have missed this! But I can't get it working. After
adding
\setupreferencing[autofile=yes
. After
adding
\setupreferencing[autofile=yes]
\setupinteraction[state=start]
to all components, compiling single components fails with
! LuaTeX error
text/tex/texmf-context/tex/context/base/strc-ref.lua:902: table
index is nil
stack traceback:
...text/tex/texmf-context/tex/context/base
]{Second}
\input tufte
\in{(see section}{ \about[second] at page \at[second])}[second].
\stoptext
I use this:
\setupreferencing[left=,right=,width=]
Steffen
___
If your question is of interest to others
this:
\setupreferencing[left=,right=,width=]
Steffen
--
Message: 6
Date: Thu, 29 Mar 2012 10:32:12 +0200
From: Hans Hagen pra...@wxs.nl
To: mailing list for ConTeXt users ntg-context@ntg.nl
Subject: Re: [NTG-context] Removing the quotes from the results
]
(should be “1 Titel”)
\stoptext
\setupreferencing[left=,right=]
This woks, ie. changes \about output too.
But how can I be sure I changed *only* \about output?
Steffen
___
If your question is of interest to others
Hi,
how can I avoid shortening of referenced titles?
\setupreferencing[left=,right=]
\starttext
\chapter[
reference={ref123},
title={This is a long titel -- every word is meaningful and shall not be
omitted},
marking={Titel},
list={Titel},
bookmark={Titel}]
see in “\at[ref123
Am 23.03.2012 um 16:33 schrieb Steffen Wolfrum:
Hi,
how can I avoid shortening of referenced titles?
\setupreferencing[left=,right=]
Add “width=” to \setupreferencing or use \getreference[title][ref123] to print
the title of the heading.
Wolfgang
::lorem]
[...]
However when I add the export option in the test_crossref1 file
% file test_crossref1
\setupreferencing[export=yes]
\starttext
\chapter[lorem]{Lorem}
Lorem ipsum dolor sit amet, consectetur adipiscing elit \in{Chapter}[lorem].
\stoptext
I get an error at compile time. Below
Hello Members,
some piece of code, with the problems.
I hope somebody can use it to improve ConTeXt,
Compilation with texexec is no problem,
Kind Regards,
Rene'
% Begin code:
\setupcolors[state=start]
\setupinteraction[state=start,color=orange]
\setupreferencing[state=start]
\defineblock
that somebody can give
me some advice.
With the hidden blocks there is no problem.
But with the item(s) there is a problem,
Kind Regards,
Rene' van Hassel
% Code:
\setupcolors[state=start]
\setupinteraction[state=start,color=orange]
\setupreferencing[state=start]
\defineblock[exercise]
\defineblock
.
In neither case the command
\setupreferencing[prefix=+]
or
\setupannotation[Exo][prefix=+]
seems to generate local tags.
Just in case, below is a minimal file, which shows how I use the annotation
module.
Best regards: OK
%% begin
\setupinteraction[state=start]
\usemodule
is with \defineannotation[Exo] and your annotation
module when using mkiv.
In neither case the command
\setupreferencing[prefix=+]
or
\setupannotation[Exo][prefix=+]
seems to generate local tags.
Just in case, below is a minimal file, which shows how I use the annotation
module.
There are a few
I have troubles with interaction in a screen document.
(1) I took the example from the wiki:
\setuppapersize[A6][A6]
\setupinteraction[state=start]
\setupreferencing[interaction=all]
\starttext
Reference is here \reference[label:1]{Some text}
\page[yes] % Insert page break
Link to \goto{some text
Am 25.11.2011 um 17:26 schrieb Hans van der Meer:
I have troubles with interaction in a screen document.
(1) I took the example from the wiki:
\setuppapersize[A6][A6]
\setupinteraction[state=start]
\setupreferencing[interaction=all]
\starttext
Reference is here \reference[label:1]{Some
On 25 nov. 2011, at 17:33, Wolfgang Schuster wrote:
Am 25.11.2011 um 17:26 schrieb Hans van der Meer:
I have troubles with interaction in a screen document.
(1) I took the example from the wiki:
\setuppapersize[A6][A6]
\setupinteraction[state=start]
\setupreferencing[interaction=all
]
\setupinteraction[state=start]
\setupreferencing[interaction=all]
\starttext
Reference is here \reference[label:1]{Some text}
\page[yes] % Insert page break
Link to \goto{some text elsewhere}[label:1].
\stoptext
Although the link on page-2 brings me to page_1, the contents of {Some
text} has
, \reference} do give
me a link-colored text with \in{txt}[reftoplace] but nothing happens.
What in my definition of the link is wrong? Adding
\setupreferencing[interaction=all] didn't help.
works ok here:
\setupinteraction[state=start]
\starttext
reference: one\pagereference[reftoplace:1]
link
}[reftoplace] but nothing happens.
What in my definition of the link is wrong? Adding
\setupreferencing[interaction=all] didn't help.
Hans van der Meer
___
If your question is of interest to others as well, please
Here you go:
%%
\setupinteraction[state=start, focus=standard, style=,color=]
\setupreferencing[interaction=all]
\definereferenceformat[infig][left={(Abb. },right={)}]
\starttext
\input knuth \infig[cow1]
\placefigure[here][cow1]{A Cow}{\externalfigure[cow][width=0.3
url.
Consider the following example from strc-ref:
\startasciimode
\useURL
[test]
[sentence_sentence%sentence#sentence~sentence/sentence//sentence:sentence.sentence]
\stopasciimode
\startlinecorrection
\hbox to \hsize
{\hss\en
\setupreferencing[urlalternative=both]%
\vbox{\hsize.25cm
On Tue, 2011-06-28 at 07:13 +0200, Peter Münster wrote:
On Tue, Jun 28 2011, Kip Warner wrote:
Is there any way to have ConTeXt not surround the link in the text with
quotation marks when using \about[some_node]?
\setupreferencing[left=, right=]
Thank you. That did it.
--
Kip Warner
On Tue, Jun 28 2011, Kip Warner wrote:
Is there any way to have ConTeXt not surround the link in the text with
quotation marks when using \about[some_node]?
\setupreferencing[left=, right=]
--
Peter
\setupreferencing[width=]
Thanks Wolfgang, much appreciated, did the trick.
Duncan
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http
details
What I would like is for the full title to be output, however long. I have
had a look through the sources but not managed to identify where any default
cut-off is defined. Can someone help.
\setupreferencing[width=]
Wolfgang
On Fri, Jun 11 2010, Peter Münster wrote:
A related question: how can I get rid of the quotation marks of \about[]?
Ok, found it: \setupreferencing[left=, right=]
Cheers, Peter
--
Contact information: http://pmrb.free.fr/contact
A bug in MkIV?
The left=[ and right=] settings of \definereferenceformat[] bleed through
to \in and \at:
\definereferenceformat[cite][left={[},right={]}]
\starttext
\section[sec:test]{Test}
\cite[].
Section \in[sec:test].
\stoptext
By the way, is \setupreferencing meant for \about only (if so
%
\definestructureconversionset[default][Character,number,Romannumerals,Character][number]
% \definestructureseparatorset [default][.,.,--][.]
% \setupstructurehead[subsection][sectionstopper=),sectionsegments=4:4]
% \setupreferencing[sectionsegments=3:4]
% \section {One} \subsection
%
\definestructureconversionset[default][Character,number,Romannumerals,Character][number]
% \definestructureseparatorset [default][.,.,--][.]
% \setupstructurehead[subsection][sectionstopper=),sectionsegments=4:4]
% \setupreferencing[sectionsegments=3:4]
% \section {One} \subsection[sec:test]{Two
[default][.,.,--][.]
% \setupstructurehead[subsection][sectionstopper=),sectionsegments=4:4]
% \setupreferencing[sectionsegments=3:4]
% \section {One} \subsection[sec:test]{Two} See \in[sec:test]
% \stoptext
TIA,
Wolfgang
this:
@@ -1,4 +1,4 @@
-\setupheads[separator=] %-- this can't be right
\setupreferencing[state=start,chapternumber=yes,global=yes]
-\setupsection[section-1][conversion=Characters]
-\setupsection[section-2][previousnumber=yes]
+\def\Mychapter#1{\convertnumber{Characters}{\getvalue{@@sesection-1}}#1
Taco wrote:
In this case it is easier to make the actual chapter number include
the 'A'. That way, you won't have to worry about separator at all
(which is good, because its use is confusing).
Try this:
@@ -1,4 +1,4 @@
-\setupheads[separator=] %-- this can't be right
\setupreferencing
be right
\setupreferencing[state=start,chapternumber=yes,global=yes]
-\setupsection[section-1][conversion=Characters]
-\setupsection[section-2][previousnumber=yes]
+\def\Mychapter#1{\convertnumber{Characters}{\getvalue{@@sesection-1}}#1}
+\defineconversion[MyChapter][\Mychapter]
+\setupsection
Dear all,
I am confused. Here is a minimal version of my problem:
---
\setupheads[separator=] %-- this can't be right
\setupreferencing[state=start,chapternumber=yes,global=yes]
\setupsection[section-1][conversion=Characters]
\setupsection[section-2][previousnumber=yes]
\setuphead[part
question was not very clear: what I need in fact
is to typeset *all* references obtained by the \in command in upshape. For
example, in {\it See \in{Figure}[fig:det] for details.}, I would like to
see 'Figure 1' in upshape and the rest in italic. I tried:
\setupreferencing
[left=\bgroup
by the \in command in upshape. For
example, in {\it See \in{Figure}[fig:det] for details.}, I would like to
see 'Figure 1' in upshape and the rest in italic. I tried:
\setupreferencing
[left=\bgroup\normal,
right=\egroup]
without success. Is there a way to achieve this without defining new
papersize][printing papersize]
\setupparagraphnumbering[options]
\setupparagraphs[name][number|each][options]
\setuppositioning[options]
\setupprofiles[options]
\setupprograms[directory=text]
\setuppublications[options]
\setupquote[options]
\setupreferencelist[names][options]
\setupreferencing
with
\setupreferencing but the text stayed bold. I could not find something
in regards to this topic in the manual or in the wiki.
I don't know references (never used them), but could this be due to
interaction? Put style=\tf in \setupinteraction. But this is just a
wild guess.
My thrid problem is, how
be
nice if there is a way they were not bold. I tried different things with
\setupreferencing but the text stayed bold. I could not find something
in regards to this topic in the manual or in the wiki.
I don't know references (never used them), but could this be due to
interaction? Put style
a line break other than defining break points for
each of it? Maybe even with a nice symbol identicating the forced break?
Second problem is the formatting of the in text references. it would be
nice if there is a way they were not bold. I tried different things with
\setupreferencing
Quoting Patrick Gundlach [EMAIL PROTECTED]:
Hi,
how do I change the appearence of \about? I don't like the quotation
marks around the result of \about.
\setupreferencing[left=,right=]
Aditya
___
If your question
Hi Aditya,
how do I change the appearence of \about? I don't like the quotation
marks around the result of \about.
\setupreferencing[left=,right=]
Now that you've told me, I've found it in the manual... Thanks,
Patrick
\setupreferencing[urlalternative=both]%
\vbox{\hsize.25cm\hbox{\bf both}\prewordbreak\url[test]}%
\hss
\setupreferencing[urlalternative=before]%
\vbox{\hsize.25cm\hbox{\bf before}\prewordbreak\url[test]}%
\hss
\setupreferencing[urlalternative=after]%
\vbox{\hsize.25cm
the general setup in the same way,
e.g. let \in[ref] do the same as \pin[ref] here.
The left and right are not in setupreferencing.
I finally came up with this, a bit of a kludge I admit:
\let\originalin=\in
\definereferenceformat[parenthesizedin][left=(,right=),command=
\originalin
. So to match the setupheads, we need also:
\setuplist[section,subsection,...][separator={{.}}]
Unfortunately
\setupreferencing[separator={{.}}]
seems to just put an extra . before the figure number, but not reverse
it, resulting in:
'1.2- erugiF'
Duncan
in this respect:
1. is it possible to change the general setup in the same way,
e.g. let \in[ref] do the same as \pin[ref] here.
The left and right are not in setupreferencing.
I finally came up with this, a bit of a kludge I admit:
\let\originalin=\in
\definereferenceformat
and right are not in setupreferencing.2. some strange interchange takes place when using \pin{A}{B}[ref]. Instead of the expected "A (ref) B" one gets "A (refB); it therefore seems the right parenthesis from the setup comes too late in play.Hans van der Meer __
\in[ref] do the same as \pin[ref] here.
The left and right are not in setupreferencing.
Don't know about this.
2. some strange interchange takes place when using \pin{A}{B}[ref].
Instead of the expected A (ref) B one gets A (refB);
it therefore seems the right parenthesis from
75 matches
Mail list logo